﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Sites/Man/Main.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Templates_MeritTable_Default" %>
<%@ Register TagPrefix="uc" TagName="Footprint" Src="~/UserControls/FootprintSaving.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphContent" Runat="Server">
    <cex:RoundedBox ID="titleBox" Color="Grey" RoundedBottom="false" runat="server">
        <h2>Merit Table</h2>
    </cex:RoundedBox>
    <div class="spacer" style="border-top:3px solid #c2bcb6; background-color:#ffffff"></div>   
    <div class="meritTableContainer clearfix">
        <%--left col--%>
        <div class="lCol">
            <uc:Footprint ID="footprint" runat="server" />
        </div>
        
        <%--right col--%>
        <div class="rCol">
           <telerik:RadGrid ID="rgMeritTable" DataSourceID="dsMeritTable" Width="97%"
            AlternatingItemStyle-BackColor="#f0ebe1" runat="server" Gridlines="None" AutoGenerateColumns="false">
            <ActiveItemStyle BackColor="Red" />
            <HeaderStyle ForeColor="#00aeef" Font-Size="Small" BackColor="#434343"   />
             
             <MasterTableView Width="100%" Summary="RadGrid table" AllowPaging="true" AllowSorting="true" AllowCustomSorting="true" AllowNaturalSort="false" PageSize="10">
                
                <Columns>
                    <%--<acms:RadIndexColumn />--%>
                    <telerik:GridBoundColumn DataField="PublicDisplayName" HeaderText="Name" SortExpression="PublicDisplayName" />
                    <telerik:GridBoundColumn HeaderText="Region" DataField="Region" SortExpression="Region" />
                    <telerik:GridBoundColumn DataField="LatestFootprint" HeaderText="Household Audit" DataFormatString="{0:#,##0} kg" SortExpression="LatestFootprint"/>
                    <telerik:GridBoundColumn DataField="PotentialSaving" HeaderText="Predicted Household Saving" DataFormatString="{0:#,##0} kg" SortExpression="PotentialSaving desc"/>
                    <telerik:GridBoundColumn DataField="SavedTotal" HeaderText="CO<sub>2</sub> Saved Total" DataFormatString="{0:#,##0} kg" SortExpression="SavedTotal desc"/>
                </Columns>
             </MasterTableView>
             <PagerStyle Mode="NextPrevAndNumeric" />
                
            </telerik:RadGrid>
            
            <acms:EventDrivenDataSource ID="dsMeritTable" CanRetrieveTotalRowCount="true" CanPage="true" CanSort="true" OnSelect="dsMeritTable_Select" runat="server" />            
            <%--<table>
                <tr>
                    <th>Photo</th>
                    <th>Name</th>
                    <th>Region</th>
                    <th>Co2 Footprint</th>
                    <th>Co2 Saved Last Audit</th>
                    <th>Co2 Saved Total</th>
                </tr>
                <tr>
                    <td>
                        <asp:Image ImageUrl="~/Sites/Man/img/profilePic1.jpg" runat="server" />
                    </td>
                    <td>
                        <asp:Label runat="server" Text="Ben"/>
                        <asp:Label runat="server" Text="Smith />
                    </td>
                    <td>
                        <asp:Label ID="Label3" runat="server" Text="London"/>
                    </td>
                    <td>
                        <asp:Label ID="Label5" runat="server" Text="00.00kg"/>
                        <asp:Label ID="Label6" runat="server" Text="£00.00" />
                    </td>
                    <td>
                        <asp:Label ID="Label7" runat="server" Text="00.00kg"/>
                        <asp:Label ID="Label8" runat="server" Text="£00.00" />
                    </td>
                    <td>
                        <asp:Label ID="Label9" runat="server" Text="00.00kg"/>
                        <asp:Label ID="Label10" runat="server" Text="£00.00" />
                    </td>
                </tr>
            </table>     --%>
        </div>
    <%--container end--%>
    </div>
</asp:Content>

